using System;

namespace HybridCLR.Extension
{
    public class AppMonoAddressable : AppMono
    {
        private CacheFile _cacheFile = new CacheFile();
        public string remoteCatalogUrl;

        private void Start()
        {
            Run();
        }

        public override async void Run()
        {
            app.Resources = new ResourcesAddressable();
            _cacheFile.RemoteCatalogUrl = remoteCatalogUrl;
            await _cacheFile.CheckUpdateTask();
            await app.LoadAot();
            await app.LoadHot();
            app.CallFun();
        }
    }
}